package com.codepoorfish.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.codepoorfish.dao.TaskMapper;
import com.codepoorfish.domain.Task;
import com.codepoorfish.service.TaskService;
import org.springframework.stereotype.Service;

@Service
public class TaskServiceImpl extends ServiceImpl<TaskMapper, Task> implements TaskService {

    @Override
    public IPage<Task> getTaskByPage(Integer page, Integer size) {
        Page<Task> taskPage = new Page<>(page, size);
        return baseMapper.selectPage(taskPage, null);
    }
}
